import config from '../conf/cfg'
const platform = process.platform

const mapPlatform = {
    'win32': config.puppeteer.executablePath.window,
    'darwin': config.puppeteer.executablePath.mac
}
const defaultMapPlatform = config.puppeteer.executablePath.docker
/**
 * 获取google chorm应用程序
 * @returns {string}
 */
export function getPuppetterExecutablePath() {
    return mapPlatform[platform] || defaultMapPlatform
}